You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@jackfoxy,
I don't think this is a good example: outer/inner etc. are not defined, and +dig:by is two chapters later in hoon.hoon than +peg.
What would you like the example to show/explain? If it was up to me I would try to demonstrate that +peg is associative and +1 is an identity. The latter is already demonstrated, and the former isn't really. Also another example of +peg/+cap interaction wouldn't hurt.
This is the exact use case that got me involved with this.
No double-hashing, no key comparisons, just hops to an index in a mip using dottar (.*).
This works when you have 100K mips all with the same index structure.
This is a practical application of peg.
Pretty sure I've seen precedence for examples that are not fully expanded (so long as they are comprehensible) and most people use the docs as a reference, not as a book.
I dunno. IMO expanding the example would make it harder to follow.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add example to tree addressing peg doc using
dig byto calculate address in(map (map).